Simple Autosizing Example

The window below has two identical scroll view objects. The examples that follow show different settings for the autosizing springs and then show what happens when the window is resized.

In the first example, Object A resizes vertically, while Object B doesn't. Distances to the edges are fixed for both. When the user makes the window shorter, Object B is truncated.

Object A Object B After Resizing

In the next example, both objects resize themselves, but Object B maintains its distance to all edges. When the user resizes the window, Object B is much more severely resized than Object A.

Object A Object B After Resizing

In the last example, Object A has the same autosizing attributes as above, but Object B's autosizing attributes now complement them. Both objects resize themselves vertically and horizontally. They keep a constant distance to the left and right edges of the window. They resize the gaps between each other and between themselves.

Object A Object B After Resizing

Related Topics

© 1999 Apple Computer, Inc.